<?php

use kartik\tabs\TabsX;
use yii\helpers\Url;
use yii\helpers\Html;

$items = [
    [
        'label' => '<i class="glyphicon glyphicon-home"></i> 基本信息',
        'active' => true,
        'content' => $this->render('_form', [
            'model' => $model,
        ])
    ],
//    [
//        'label' => '<i class="glyphicon glyphicon-home">属性</i>',
//        'active' => false,
//        'content' => $this->render('_shuxing', [
//            'model' => $model,
//        ])
//    ]
];


$this->title = '商品：' . $model->title;
$this->params['breadcrumbs'][] = ['label' => 'Shop Goods', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>


<section class="wrapper site-min-height">
    <!-- page start-->
    <section class="panel">
        <header class="panel-heading">
            <?= Html::a('返回', 'javascript:history.back(-1)'); ?>  <?= Html::encode($this->title) ?>
        </header>
        <div class="panel-body">
            <div class="adv-table editable-table ">

                <div class="shop-goods-create">


                    <?= TabsX::widget([
                        'items' => $items,
                        'position' => TabsX::POS_ABOVE,
                        'encodeLabels' => false
                    ]);
                    ?>

                </div>

            </div>
        </div>
    </section>
</section>
